package org.example.controller.v1;

import org.example.exception.DefaultApiException;
import org.example.mapper.AppMapper;
import org.example.pojo.Battle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("v1")
public class TestController {
    @Autowired
    private AppMapper appMapper;

    @RequestMapping("test/1")
    public String test1() throws DefaultApiException {
        throw new DefaultApiException("default api exception");
    }
}
